package io.renren.modules.generator.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.modules.generator.dao.AddressProductDao;
import io.renren.modules.generator.entity.AddressProductEntity;
import io.renren.modules.generator.service.AddressProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("addressProductService")
public class AddressProductServiceImpl extends ServiceImpl<AddressProductDao, AddressProductEntity> implements AddressProductService {

    @Autowired
    private AddressProductDao addressProductDao;

    @Override
    public void updateProductAddressStatus(Integer[] ids) {
        if(ids != null && ids.length > 0){
            addressProductDao.updateProductAddressStatus(ids);
        }

    }
}
